export const getMapAssetURL = (image) => {
    // 参数一: 相对路径
    // 参数二: 当前路径的URL
    return new URL(`../assets/images/map/${image}`,
        import.meta.url).href
}

export const getIconAssetURL = (image) => {
    const url = new URL(`../assets/images/home/${image}`,
        import.meta.url).href
    return url
}
export const getPicAssetURL = (image) => {
    const url = new URL(`../assets/images/public/${image}`,
        import.meta.url).href
    return url
}
export const getModelAssetURL = (image) => {
    const url = new URL(`../assets/images/home/mod_img/${image}`,
        import.meta.url).href
    return url
}
export const getModelExam = (image) => {
        const url = new URL(`../assets/images/modelExam/${image}`,
            import.meta.url).href
        return url
    }
    // 获取树形控件图标
export const getModelTree = (image) => {
        const url = new URL(`../assets/images/basicsConfig/${image}`,
            import.meta.url).href
        return url
    }
    //
export const getStatisticsURL = (image) => {
    const url = new URL(`../assets/images/home/statistics_img/${image}`,
        import.meta.url).href
    return url
}

